<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:p="http://primefaces.org/ui">
    <h:head>
        <title>Login to Meteocal</title>
    </h:head>
    <h:body>

        <p:layout fullPage="true">
            <p:layoutUnit position="west" size="900" collapsible="false" style="border: 0px">
                <h1 style="color: red">Welcome in</h1>
                <br/>
                <h:graphicImage value="/images/Simbolo_Meteocal.png" width="850"></h:graphicImage>
            </p:layoutUnit>
            <p:layoutUnit position="center" style="border: 0px">
                <h:form>
                    <p>
                        <br/><br/>
                        <h2 style="font: 50px">If you have an account login here!!!</h2>
                        <br/><br/>
                    </p>
                    <p>
                        <p:outputLabel for="usernameInput" value="Username"/>
                        <p:inputText id="usernameInput" value="#{loginBean.username}" required="true" />
                    </p>
                    <p>
                        <p:outputLabel for="passwordInput" value="Password"/>
                        <p:password id="passwordInput" value="#{loginBean.password}" required="true" />
                    </p>
                    <p>
                        <h:button outcome="homepage" value="Move to your persoal page" />
                    </p>
                </h:form>       
            </p:layoutUnit>
            <p:layoutUnit position="south" size="100" style="border: 0px">
                <p>
                    You are not registered yet? 
                    <h:link outcome="register" value="You can register here" />
                </p>
                <p>
                    <a href="http://openweathermap.org/api" style="color: blue">Weather forecast API site</a>
                </p> 
            </p:layoutUnit>
        </p:layout>
        <br />
        <h:link outcome="welcomePrimefaces" value="Primefaces welcome page" />
    </h:body>
</html>

